/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package csse3004.GD.PAdmin;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;

/**
 *
 * @author Mamdouh Alharbi 4194298
 */
public class HomeData {
    
    private int ID;
    private ArrayList<Integer> pollCreatorID = new ArrayList<Integer>();
    private String pollName;
    private ArrayList<String> creatorName = new ArrayList<String>();

    public ArrayList<String> getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(ArrayList<String> creatorName) {
        this.creatorName = creatorName;
    }
    
    public void addCreatorName(String name){
        this.creatorName.add(name);
    }
   
    public int getID(){
        return ID;
    }
    
    public void setID(int ID){
        this.ID=ID;
    }
    
    public ArrayList<Integer> getPollCreatorID() {
        return pollCreatorID;
    }

    public void setPollCreatorID(ArrayList<Integer> pollCreatorID) {
        this.pollCreatorID = pollCreatorID;
    }
    
    public void addPollCreatorID(int id){
        this.pollCreatorID.add(id);
    }
    
    public String getPollName() {
        return pollName;
    }

    public void setPollName(String pollName) {
        this.pollName = pollName;
    }
    
    

    public static ArrayList<HomeData> genTempData(){
        ArrayList<HomeData> array = new ArrayList();
        
        HomeData data = new HomeData();
        data.setID(1);
        data.addPollCreatorID(1);
        data.addCreatorName("Mamdouh");
         data.addPollCreatorID(7);
        data.addCreatorName("Alharbi");
        data.setPollName("Report Question");
        
        HomeData data2 = new HomeData();
        data2.setID(2);
        data2.setPollName("Report Question1");
        
        HomeData data3 = new HomeData();
        data3.setID(3);
        data3.addPollCreatorID(3);
        data3.addCreatorName("David");
        data3.addCreatorName("Jason");
        data3.addPollCreatorID(10);
        data3.setPollName("Question of questionable relevance");
        
        array.add(data);
        array.add(data2);
        array.add(data3);
        
        return array;
    }
    
}
